package SV_STRUTS_NOTRESET;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import javax.servlet.http.HttpServletRequest;

public class Example {
    public class SV_STRUTS_NOTRESET_Sample_1 extends ActionForm {
        private String name;
        private String[] cars = new String[10];
        public String getName() {
            return name;
        }
        public void setName(String name) {
            this.name = name;
        }
        public String getCar(int i) {
            return cars[i];
        }
        public void setCar(int i, String car) {
            this.cars[i] = car;
        }
        public void reset(ActionMapping map,
                          HttpServletRequest req) {
            cars = new String[10];
        }
    }
}
